package com.lilicould.entity;

import java.util.ArrayList;

public class ContractDetails {
    private LeaseContract leaseContract;
    private Apartment apartment;
    private ArrayList<Tenant> tenants;

    public ContractDetails(LeaseContract leaseContract, Apartment apartment, ArrayList<Tenant> tenants) {
        this.leaseContract = leaseContract;
        this.apartment = apartment;
        this.tenants = tenants;
    }

    public LeaseContract getLeaseContract() {
        return leaseContract;
    }

    public void setLeaseContract(LeaseContract leaseContract) {
        this.leaseContract = leaseContract;
    }

    public Apartment getApartment() {
        return apartment;
    }

    public void setApartment(Apartment apartment) {
        this.apartment = apartment;
    }

    public ArrayList<Tenant> getTenants() {
        return tenants;
    }

    public void setTenants(ArrayList<Tenant> tenants) {
        this.tenants = tenants;
    }

    @Override
    public String toString() {
        return "ContractDetails{" +
                "leaseContract=" + leaseContract +
                ", apartment=" + apartment +
                ", tenants=" + tenants +
                '}';
    }
}
